package demo_thread;

/**
 * @author: android 超级兵
 * @create: 2022-01-15 14:21
 * TODO Thread.start和Thread.run 的区别
 **/
public class Client4 {

    public static class Client4Thread extends Thread {
        @Override
        public void run() {
            super.run();
            System.out.println("thread:" + Thread.currentThread().getName());
        }
    }

    public static class User {
        public void run() {
            System.out.println("User.run" + Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) {
        Client4Thread client4Thread = new Client4Thread();
//        client4Thread.start();

        // 效果一样
        client4Thread.run();
//
//
        new User().run();
    }
}